<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

	<head>
		<title>首页</title>
		<script type="text/javascript">
	jq(function() {
		jq("button.valid").parents("form").validate({
			rules: {
			"user.username": {required: true},
			"user.password": {required: true}
			}
		});
	});
	</script>
	</head>

	<body>
		<div id="welcome"></div>
		<c:if test="${empty visitor || visitor.username eq 'guest'}">
		<form id="login" method="post" action="wel!login.z">
			<label>
				用户名<span class="notice">（区分大小写）</span>
				<br />
				<input type="text" name='user.username' tabindex="1">
			<br />
			</label>
			<label>
				密码<span class="notice">（区分大小写）</span>
				<br />
				<input type="password" name="user.password" tabindex="2">
			<br />
			</label>
			<button type="submit" tabindex="3" class="valid">
				登陆
			</button>
		</form>
		</c:if>
	</body>
